package com.jzo2o.foundations.mb;

public class Demo {
    public static void main(String[] args) {
        //创建教师对象
        Person p1=new Teacher();
        p1.doSome();

        System.out.println("-----------------");
        //创建学生对象
        Person p2=new Student();
        p2.doSome();
    }
}
